package org.chen.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("comment_batch")
public class CommentBatch extends Model<CommentBatch> {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("batch_no")
    private String batchNo;
    @TableField("total_count")
    private Integer totalCount;
    @TableField("success_count")
    private Integer successCount;
    @TableField("failure_count")
    private Integer failureCount;
    @TableField("comment_content")
    private String commentContent;
    private String nickname;
    private String email;
    @TableField("website_url")
    private String websiteUrl;
    private String status;  // PENDING, PROCESSING, COMPLETED, FAILED
    
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}